/*text文本；match图片样式(0:错误；1：对；2：笑脸；3：没登录)；link跳转链接；type样式（0:没有；1：单按钮还:2：双按钮）*/
function tanchuan(text, match, link, type) {
    if (type == "1") {
        $("body").append("<div id='back'><div id='tanchuan'><span><img id='match' src=''>" + text + "</span><img id='close' src='/purchase/img/no.png'><div id='button'><a id='true' href='" + link + "'>确定</a></div></div></div>");
    }else if(type == "2"){
        $("body").append("<div id='back'><div id='tanchuan'><span><img id='match' src=''>" + text + "</span><img id='close' src='/purchase/img/no.png'><div id='button'><a id='true' href='" + link + "'>确定</a><div id='false'>取消</div></div></div></div>");
    }else if(type == "0"){
        $("body").append("<div id='back'><div id='tanchuan'><span><img id='match' src=''>" + text + "</span><img id='close' src='/purchase/img/no.png'><div id='button'></div></div></div>");
    }
    if (match == "0") {
        $("#match").attr("src", "/purchase/img/cuo.png");
    }
    if (match == "1") {
        $("#match").attr("src", "/purchase/img/dui.png");
    }
    if (match == "2") {
        $("#match").attr("src", "/purchase/img/xiaolian.jpg");
    }
    if (match == "3") {
        $("#match").attr("src", "/purchase/img/notlogin.jpg");
    }
    $("#close").click(function () {
        $("#back").remove();
    })
    $("#false").click(function () {
        $("#back").remove();
    })
}

